import axios from 'axios';
import { getApiUrl, getLocalhost, replaceLocalhost } from '../zhcFile/axiosApi/server';
var axiosApi = axios.create({
  baseURL: getApiUrl(),
  timeout: 1000,
})
// 请求拦截器
axiosApi.interceptors.request.use(
  function (config) {
    return config;
  },
  function (error) {
    return Promise.reject(error);
  }
)
// 响应拦截器
axiosApi.interceptors.response.use(
  function (response) {
    return response;
  },
  function (error) {
    return Promise.reject(error);
  }
)

export default axiosApi;
